#!/usr/bin/env python
# encoding=utf-8

import json
import sys
import datetime
from scpy.logger import get_logger

import scpy2.util as util
from scpy2.crawlers.crawler import CrawlProcessor
from parse_util.lagou_crawler import LagouCrawler
from parse_util.job51_crawler import Job51Crawler
from parse_util.juxian_crawler_20167 import run_single_company,save
reload(sys)
sys.setdefaultencoding('utf-8')

logger = get_logger(__file__)


class ResumeParser(CrawlProcessor):
    def crawl(self, params):
        resumeList = run_single_company(params.get('company_name'))
        return save(resumeList,params.get('company_name'))